import request from '@/utils/request'

export function roomList(data) {
  return request({
    url: '/roomlist',
    method: 'post',
    params: data
  })
}

export function roomDetail(data) {
  return request({
    url: '/roomdetail',
    method: 'post',
    params: data
  })
}

export function createRoom(data) {
  return request({
    url: '/roomadd',
    method: 'post',
    data
  })
}

export function updateRoom(data) {
  return request({
    url: '/roomupdate',
    method: 'post',
    data
  })
}
